<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a1=new Object();
            a1.name="susan",
            a1.age=12
            console.log(a1)
            console.log(a1.age)
        let a2={
                name:"niad",
                age:14
            }
            console.log(a2)
            console.log(a2.name)
        function Person(){
            this.name="lad"
            this.age=14
        }
        let p=new Person()
        console.log(p)
        function Person1(){
            this.name="fafa"
            this.height=165
            this.sex="女"
        }
        let n = new Person1();
        n.sayHello=b => {
       console.log(b); 
        };

          n.sayHello("你好");
        console.log(n.sex)
        function Hello(){
            this.name="yoyo"
            this.age=14
            this.sayHi=a=>{
                console.log(a)
            }
       }
       let e=new Hello()
       let f=e.sayHi="Hello!I`m"
       console.log(f,e.name)
    </script>
</body>
</html>